package com.appjishu.web.model;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.sql.Timestamp;

@Data
@ApiModel("用户")
@TableName("fly_user_information")
public class UserInformation {

    @TableId(type = IdType.AUTO)
    @Excel(name = "id")
    @ApiModelProperty(value = "id")
    private Long id;

    @Excel(name = "上线时间")
    @ApiModelProperty(value = "上线时间")
    private Timestamp loginTime;

    @Excel(name = "下线时间")
    @ApiModelProperty(value = "上线时间")
    private Timestamp downlineTime;

    @Excel(name = "设备名称")
    @ApiModelProperty(value = "设备名称")
    private String deviceType;

    @Excel(name = "在线时长")
    @ApiModelProperty(value = "在线时长")
    private Long duration;

    @Excel(name = "用户id")
    @ApiModelProperty(value = "用户id")
    private Long userId;
}
